function  THHComm() {
    this.cb = function (callback, p0, p1 ,p2) {
        if( callback){
            try{
                callback(p0,p1,p2);
            }
            catch (e) {
                console.log(e);
            }
        }
    };
    this.newId = function (header , splitStr) {
        var h = header && header !=null ? header:"";
        var s = splitStr && splitStr !=null ? splitStr:"";
        var r = [ h  , ( new Date()).getTime().toString() , parseInt(10000* Math.random()).toString()].join(s);
    };
    this.getDictItems = function (dict) {
        var res =[];
        if( dict){
            for( p in dict){
                res.push(dict[p]);
            }
        }
        return res;
    };
}

function  THHDB() {

}